package com.tencreat.service.mall;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tencreat.common.core.domain.model.ReqIdParam;
import com.tencreat.common.core.domain.model.ReqIdsParam;
import com.tencreat.domain.mall.MallGoods;
import com.tencreat.domain.mall.MallMaterial;

import java.util.List;

/**
 * 朋友圈素材Service接口
 *
 * @author tencreat
 * @date 2022-01-10
 */
public interface IMallMaterialService  extends IService<MallMaterial> {
    /**
     * 查询朋友圈素材
     *
     * @param id 朋友圈素材ID
     * @return 朋友圈素材
     */
    public MallMaterial selectMallMaterialById(ReqIdParam id);

    /**
     * 查询朋友圈素材列表
     *
     * @param mallMaterial 朋友圈素材
     * @return 朋友圈素材集合
     */
    public List<MallMaterial> selectMallMaterialList(MallMaterial mallMaterial);

    /**
     * 新增朋友圈素材
     *
     * @param mallMaterial 朋友圈素材
     * @return 结果
     */
    public int insertMallMaterial(MallMaterial mallMaterial);

    /**
     * 修改朋友圈素材
     *
     * @param mallMaterial 朋友圈素材
     * @return 结果
     */
    public int updateMallMaterial(MallMaterial mallMaterial);

    /**
     * 批量删除朋友圈素材
     *
     * @param ids 需要删除的朋友圈素材ID
     * @return 结果
     */
    public int deleteMallMaterialByIds(ReqIdsParam ids);

    /**
     * 删除朋友圈素材信息
     *
     * @param id 朋友圈素材ID
     * @return 结果
     */
    public int deleteMallMaterialById(ReqIdParam id);

    boolean reSortOrderReduce(MallMaterial mallMaterial);

    boolean reSortOrderPlus(MallMaterial mallMaterial);
}
